/*
 * Employee.cpp
 *    Implementation for the abstract class Employee.
 *  Created on: Mar 1, 2014
 *      Author: This is from the Savitch Book
 */

#include "Employee.h"

#include <string>
#include <cstdlib>
#include <iostream>

using std::string;
using std::cout;

namespace SavitchEmployee {

Employee::Employee( ) : name("No name yet"), ssn("No number yet"), netPay(0){
    //deliberately empty
}

Employee::Employee(string theName, string theNumber) :
    name(theName), ssn(theNumber), netPay(0) {
    //deliberately empty
}

string Employee::getName( ) const{
    return name;
}

string Employee::getSsn( ) const{
    return ssn;
}

double Employee::getNetPay( ) const{
    return netPay;
}

void Employee::setName(string newName){
    name = newName;
}

void Employee::setSsn(string newSsn){
    ssn = newSsn;
}

void Employee::setNetPay (double newNetPay){
    netPay = newNetPay;
}

} /* namespace SavitchEmployee */
